package com.zllkj.mm.module.home.fragments;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.zllkj.mm.R;
import com.zllkj.mm.base.BaseTitleFragment;
import com.zllkj.mm.util.CircleImageView;

import butterknife.BindView;
import butterknife.OnClick;
import cn.bingoogolapple.bgabanner.BGABanner;


/**
 * 我的小店
 * Created by leon_ok.
 */

public class ShopIndex2Fragment extends BaseTitleFragment {

    @BindView(R.id.ivhead)
    CircleImageView ivhead;
    @BindView(R.id.tvUserName)
    TextView tvUserName;
    @BindView(R.id.tvTag1)
    TextView tvTag1;
    @BindView(R.id.shopIndexRlInfo)
    RelativeLayout shopIndexRlInfo;
    @BindView(R.id.bgaBanner)
    BGABanner bgaBanner;
    @BindView(R.id.goodsManagerLayout)
    RelativeLayout goodsManagerLayout;
    @BindView(R.id.orderManagerLayout)
    RelativeLayout orderManagerLayout;
    @BindView(R.id.afterSaleManagerLayout)
    RelativeLayout afterSaleManagerLayout;
    @BindView(R.id.backAddLayout)
    RelativeLayout backAddLayout;
    @BindView(R.id.shopDetailLayout)
    RelativeLayout shopDetailLayout;
    @BindView(R.id.MarginLayout)
    RelativeLayout MarginLayout;
    @BindView(R.id.settlementAccountLayout)
    RelativeLayout settlementAccountLayout;

    public static ShopIndex2Fragment newInstance() {
        return new ShopIndex2Fragment();
    }

    @Override
    protected int getContentLayoutId() {
        return R.layout.fragment_shopindex2;
    }

    @Override
    protected void initView(View rootView) {
        super.initView(rootView);
        setCommonTitle("我的小店");
    }

    @OnClick({R.id.goodsManagerLayout, R.id.orderManagerLayout, R.id.afterSaleManagerLayout, R.id.backAddLayout, R.id.shopDetailLayout, R.id.MarginLayout, R.id.settlementAccountLayout})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.goodsManagerLayout:
                addFragment(GoodsListFragment.newInstance());
                break;
            case R.id.orderManagerLayout:
                break;
            case R.id.afterSaleManagerLayout:
                break;
            case R.id.backAddLayout:
                break;
            case R.id.shopDetailLayout:
                addFragment(ShopDetailFragment.newInstance());
                break;
            case R.id.MarginLayout:
                break;
            case R.id.settlementAccountLayout:
                break;
        }
    }

}

